http2: Moves HTTP/2 GOAWAY load shed point handling to the ConnectionManager#44736
http2: Moves HTTP/2 GOAWAY load shed point handling to the ConnectionManager#44736birenroy wants to merge 8 commits into
Conversation
Signed-off-by: Biren Roy <birenroy@google.com>
|
/retest |
Signed-off-by: Biren Roy <birenroy@google.com>
|
/assign @RyanTheOptimist |
Signed-off-by: Biren Roy <birenroy@google.com>
|
/retest |
Signed-off-by: Biren Roy <birenroy@google.com>
|
/assign @paul-r-gall |
Signed-off-by: Biren Roy <birenroy@google.com>
|
/retest |
RyanTheOptimist
left a comment
There was a problem hiding this comment.
This change LGTM, but I do wonder if it needs a runtime guard as this is a behavior change. I agree with your assessment that it's a bad idea to use the load shed point as-is, but someone might be doing so. WDYT?
|
/wait |
Signed-off-by: Biren Roy <birenroy@google.com>
I added a runtime feature. Thanks! |
Signed-off-by: Biren Roy <birenroy@google.com>
RyanTheOptimist
left a comment
There was a problem hiding this comment.
Thanks for adding the "just to be safe" runtime guard!
Signed-off-by: Biren Roy <birenroy@google.com>
Head branch was pushed to by a user without write access
|
/retest |
As implemented, the
http2_server_go_away_on_dispatchload shed point causes Envoy to send a singleGOAWAYframe, with themax_stream_idset to the highest stream ID observed by the server at that point. This results in the server dropping any requests in flight at that moment, making the load shed point unusable in practice.This PR moves the load shed point to the connection manager, where it can initiate the graceful shutdown sequence described in RFC 9113 Section 6.8, by calling
ConnectionManagerImpl::sendGoAwayAndClose().For symmetry, I have also moved the
http2_server_go_away_and_close_on_dispatchload shed point, maintaining the eager shutdown behavior.Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]